<style>
    #esb-parameter-add {
        padding: 20px 25px 25px 0;
        margin: 0 0 2px 3px !important;
    }
</style>
<div class="layui-fluid" id="esb-parameter-add">
    <form class="layui-form" lay-filter="service-info-parameter-add-form" onsubmit="return false">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">参数名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="name" lay-verify="required|name" placeholder="英文"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">参数类型</label>
                <div class="layui-input-inline parameter-select">
                    <select name="type" lay-filter="type">
                        <option value="string" selected="">string</option>
                        <option value="boolean">boolean</option>
                        <option value="integer">integer</option>
                        <option value="number">number</option>
                        <option value="object">object</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <!--<label class="layui-form-label">普通文本域</label>-->
            <div class="layui-input-block">
                <textarea name="text" class="layui-textarea parameter-text" data-th-value="[]" readonly></textarea>
            </div>
        </div>
    </form>
</div>

<script>
    layui.use([ 'form'], function () {
        var $ = layui.$,
            form = layui.form,
            data = POPUP_DATA;
        form.render();
        $('.parameter-text').val(data.paramJson);
    });
</script>